import { doLoginApi } from "@/api/userApi"

export default {
    async loginAction({ commit }, userData) {
      let ret = await doLoginApi(userData)
      if (ret.code === 0) {
        commit('setUserInfo', ret.data)
      }
      return ret.code
    }
  }
    